<?php

/**
 * 网站后台路由 -- 直播培训
 */

Route::group(['middleware'=>'adminAuth', 'namespace' => 'Admin', 'prefix' => 'admin/zb/'],function() {
	//列表
	Route::get('datalist', 'ZbController@listData');
    Route::get('datatablelist', 'ZbController@bootstrapTableList');
	//新增
	Route::get('addview', 'ZbController@addDataView');
	Route::post('addsave', 'ZbController@toAddData');
	//修改
	Route::get('editview/{id}', 'ZbController@updateDataView');
	Route::post('editsave/{id}', 'ZbController@toUpdateData');
	//状态修改
	Route::get('status/{id}/{status?}', 'ZbController@toStatusData');
	//删除
	Route::delete('destroy', 'ZbController@toDelData');
});

